package com.oa.ylms.apps.dao.goods;

import java.util.List;

import com.oa.ylms.apps.entity.goods.GoodCategoryValue;

public interface IGoodsCategoryDao {
	/**
	 * 列出所有物资类型(可以根据可见性选择)
	 * @return
	 * @throws Exception
	 */
    public	List<GoodCategoryValue> queryAll(int usability)throws Exception;
    /**
     * 添加一条物资类型
     * @param goods
     * @return
     * @throws Exception
     */
	public int addGoodsCategory(GoodCategoryValue goods)throws Exception;
	/**
	 * 根据物资类型ID得到物资类型
	 * @param goodCategory
	 * @return
	 */
	public GoodCategoryValue queryByCateId(GoodCategoryValue goodCategory);
	/**
	 * 编辑物资类型
	 * @param goodCategory
	 * @return
	 */
	public boolean editGoodsCategory(GoodCategoryValue goodCategory);
	
}
